<?php

class ZjyAd extends Ad {

	const TYPE_TRAVEL = 'zjy_travel';
	const TYPE_RAIDERS = 'zjy_raiders';
	const TYPE_IMGS = 'zjy_imgs';
	
	
	protected function beforeValidate() {
		if ($this->isNewRecord) {
			$this->target = '_blank';
		}
		return parent::beforeValidate();
	}
	
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
}

?>